<template>
  <div class="collect">
    <span v-for="item in collect" :key="item.id" class="collentitems">
      <span v-if="item.id == 1">{{ item.name }}:{{ money[item.id - 2] }}</span>
      <span v-if="item.id == 2">{{ item.name }}:{{ money[item.id - 2] }}</span>
      <span v-if="item.id == 3">{{ item.name }}:{{ money[item.id - 2] }}</span>
      <span v-if="item.id == 4">{{ item.name }}:{{ money[item.id - 2] }}</span>
      <span v-if="item.id == 5">{{ item.name }}:{{ money[item.id - 2] }}</span>
      <span v-if="item.id == 6">{{ item.name }}:{{ money[item.id - 2] }}</span>
    </span>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  props: {
    tableData: Array,
    collect: Array,
    money: Array,
  },

  created() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.collect {
  width: 100%;
  height: 50px;
  background-color: rgb(226, 233, 193);
  box-sizing: border-box;
  text-align: center;
  line-height: 50px;
}
.collentitems {
  display: inline-block;
  widows: 50px;
  height: 30px;
  margin: 0px 20px;
  box-sizing: border-box;
  color: red;
  font-size: 18px;
  font-weight: 700;
}
</style>